<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>
      <%= htmlWebpackPlugin.options.title %>
    </title>
    <script>
      document.addEventListener("DOMContentLoaded", function() {
        document.documentElement.style.fontSize =
          document.documentElement.clientWidth / 20 + "px";
      });
      var coverSupport =
        "CSS" in window &&
        typeof CSS.supports === "function" &&
        (CSS.supports("top: env(a)") || CSS.supports("top: constant(a)"));
      document.write(
        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
          (coverSupport ? ", viewport-fit=cover" : "") +
          '" />'
      );
    </script>
    <link
      rel="stylesheet"
      href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css"
    />
    <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script
      type="text/javascript"
      charset="UTF-8"
      src="https://web.cdn.openinstall.io/openinstall.js"
    ></script>
    <script type="text/javascript">
      var shareMatch = location.href.match(/appShareId=([^&]+)/);
      var consultMatch = location.href.match(/personId=([^&]+)/);
      var data = {
        enterType: "brokerPageList",
        linkId: shareMatch ? shareMatch[1] : "",
        linkH5Url: window.location.href,
        param: {
          consultId: consultMatch ? consultMatch[1] : "",
        },
      };
      window.onload = function() {
        new OpenInstall(
          {
            appKey: "z61y8p",
            onready: function() {
              this.schemeWakeup({ data: data });
              var m = this,
                button = document.getElementById("app-btn");
              button.onclick = function() {
                m.wakeupOrInstall({ data: data });
                return false;
              };
            },
          },
          data
        );
      };
    </script>
  </head>

  <body>
    <noscript>
      <strong>Please enable JavaScript to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
